{% extends "base.twig" %}

{% block content %}
	<div class="content-wrapper">
		<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}">
			<section class="article-content">
				<h1 class="article-h1">{{post.title}}</h1>
				<div class="article-body">
					{% if post.thumbnail != null %}
						<img src="{{post.thumbnail.src}}" class="featured-image"/>
					{% endif %}
					{{post.content}}								
				</div>
			</section>

			{% if post.comment_status != "closed" %}
			<!-- comment box -->
				<section class="comment-box">
					<!-- comments -->
					<div class="comments">
						{% if post.comments %}
							<h3> Reacties </h3>
							{% for cmt in post.comments %}
								{% include "comment.twig" with {comment:cmt} %}
							{% endfor %}
						{% endif %}				
					</div>

					{% if post.comment_status == "closed" %}
						<p> Reacties op deze pagina zijn niet (meer) toegestaan </p>
					{% else %}
						<!-- comment form -->
						{% include "comment-form.twig" %}
					{% endif %}			
				</section>
			{% endif %}
		</article>
	</div><!-- /content-wrapper -->
{% endblock %}
{# vi: set ts=4 sw=4 ft=html noet: #}
